/*
 * QSeparatorAdapter.h  0.4.0 / Nov 29, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QSEPARATORADAPTER_H
#define QSEPARATORADAPTER_H

#include "Cute4jSwing.h"

// QSeparatorAdapter Class. ---------------------------------------------------

/*!
 * \brief QSeparator Adapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QSeparatorAdapter : public QWidget
{
public:
  QSeparatorAdapter();
public:
  Qt::Orientation orientation() const;
  void setOrientation(Qt::Orientation orientation);
  QString text() const;
  void setText(const QString text);
  void setUseStylePalette(bool useStylePalette);
public:
  virtual QSize sizeHint() const;
protected:
  virtual void changeEvent(QEvent *e);
  virtual void paintEvent(QPaintEvent *e);
protected:
  void updateLabel();
private:
  Qt::Orientation m_orientation;
  QString m_text;
  bool m_useStylePalette;
public:
  static const int DEFAULT_SEPARATOR_EXTENT;
};

#endif // QSEPARATORADAPTER_H
